package com.homegoods.videomodule.ui.activity;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.homegoods.videomodule.R;
import com.homegoods.videomodule.databinding.VideoActivityAnchorHomeBinding;
import com.homegoods.videomodule.presenter.AnchorHomePresenter;
import com.kedll.library.base.KRefreshListActivity;
import com.share.sharelibrary.share.ShareData;

@Route(path = ARouterPath.PATH_ANCHOR_HOME)
public class AnchorHomeActivity extends KRefreshListActivity<VideoActivityAnchorHomeBinding, AnchorHomePresenter> {

    @Autowired
    public String anchorId;

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        appBarLayout.setBackgroundResource(R.color.white);
        setTopRightButton("", R.mipmap.icon_share, v -> new ShareData.Builder()
                .builder()
                .startShare());
    }

    @Override
    protected AnchorHomePresenter getPresenter() {
        return new AnchorHomePresenter(this);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        ARouter.getInstance().inject(this);
        list.setBackgroundResource(R.color.white);
    }

    @Override
    public int getLayout() {
        return R.layout.video_activity_anchor_home;
    }


}
